<?php

class ControleAcaoDao extends Dao {

    public function injectDependencies() {

    }

    public function findByAction($IDAcao) {
        $this->initConnection();
        $this->tMysqli->escape($IDAcao);
        $StSql = TQuery::getSqlFindControlAccessByAction($IDAcao);
        $tQuery = $this->tMysqli->exec($StSql);
        $ArControlAccess = array();
        while($ArControlAccessData = mysqli_fetch_assoc($tQuery)) {
            $ArControlAccess[] = new ControleAcao($ArControlAccessData);
        }
        $this->closeConnection();
        return $ArControlAccess;
    }

}

?>
